<template>
  <div> 
      home
  </div>
</template>
<script >      
  

import {mapState,mapMutations} from 'vuex';  
export default {
  name: 'App',
  data(){
    return {
      active:0, 
    }
  },
  computed:{...mapState(['hash'])},
  created(){

  },
  methods: { ...mapMutations(['SetHash']),
  },
  mounted(){ 
     var map={
       "#/home":0, "#/super":1, "#/user":2,
     }
     this.active = map[location.hash]
     this.SetHash(location.hash)
  },
  activated(){
     console.log("activated调用了");
    debugger
    this.SetHash(location.hash)
  }

}

</script>
<style scoped>
   
</style>